package org.hcs.camel.component;

import java.util.Map;

import org.apache.camel.Component;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
import org.apache.camel.impl.DefaultEndpoint;

public class EventServiceEndpoint extends DefaultEndpoint {
	
	private static Component component = new EventServiceComponent();

	public EventServiceEndpoint(String uri, String remaining, Map<String, Object> parameters) {
		super(uri , component);
	}
	
    //@Override
    public Consumer createConsumer(Processor processor) throws Exception {
            return new EventServiceConsumer(this, processor);
    }


  //@Override
    public Producer createProducer() throws Exception {
            return new EventServiceProducer(this);
    }

  //@Override
  public boolean isSingleton() {
	  return true;
  }
}
